<?php
## include config & db info##
include $_SERVER['DOCUMENT_ROOT']."/pos/lib/list.php";

## include HTML Insert heade ##
include $_SERVER['DOCUMENT_ROOT']."/pos/lib/head_insert.php";

## include SQL header ##
include $_SERVER['DOCUMENT_ROOT']."/pos/lib/array_sql.php";

$query  = sprintf(posSql("customer_info_import"),$Idx);
$customer = DBarray($query);


?>

<body>
	<div style="width: 1024px; padding: 10px;">
		<div
			style="border-bottom: 1px solid #e8e8e8; text-align: left; font-size: 12px; margin-bottom: 12px; color: #9a9a9a">
			::: 고객 관리&nbsp;⇒&nbsp;고객 정보 마스터&nbsp;⇒&nbsp;고객 정보 상세 보기</div>
		<form name="detail" method="post">
			<input type="hidden" value="<?=$customer[Idx]?>" name="chk_no[]" /> <input
				type="hidden" value="" name="mode" />
			<div id="register">

				<ul>
					<li class="lable">고객번호</li>
					<!--  readonly onclick="javascript:chk_id();"  -->
					<li class="detail">&nbsp;<?=$customer['usercode']?>
					</li>
				</ul>
				<ul>
					<li class="lable">성명</li>
					<li class="detail"><b>&nbsp;<?=$customer['name']?>
					</b></li>
				</ul>
				<ul>
					<li class="lable">성명(가나)</li>
					<li class="detail">&nbsp;<?=$customer['namekana']?>
					</li>
				</ul>
				<ul>
					<li class="lable">우편번호</li>
					<li class="detail">&nbsp;<?=$customer['zip']?>
					</li>
				</ul>
				<ul>
					<li class="lable">주소</li>
					<li class="detail">&nbsp;<?=$customer['addr1']?>
					</li>
				</ul>
				<ul>
					<li class="lable">Tel</li>
					<li class="detail">&nbsp;<?=$customer['tel']?>
					</li>
				</ul>
				<ul>
					<li class="lable">Phone</li>
					<li class="detail">&nbsp;<?=$customer['phone']?>
					</li>
				</ul>
				<ul>
					<li class="lable">Fax</li>
					<li class="detail">&nbsp;<?=$customer['fax']?>
					</li>
				</ul>
				<ul>
					<li class="lable">E-mail</li>
					<li class="detail">&nbsp;<?=$customer['email']?>
					</li>
				</ul>
				<ul>
					<li class="lable">직업</li>
					<li class="detail">&nbsp;<?=$customer['job']?>
					</li>
				</ul>
				<ul>
					<li class="lable">성별</li>
					<li class="detail">&nbsp;
					<?php
					if($customer['mw']=='m'){
						echo "남";
					}else{
						echo "여";
					}
					?>
					</li>
				</ul>
				<ul>
					<li class="lable">나이</li>
					<li class="detail">&nbsp;<?=$customer['age']?>
					</li>
				</ul>
				<ul>
					<li class="lable">생년월일</li>
					<li class="detail">&nbsp;<?=$customer['birth']?>
					</li>
				</ul>
				<ul>
					<li class="lable">생성일</li>
					<li class="detail">&nbsp;<?=$customer['writeday']?>
					</li>
				</ul>
				<ul>
					<li class='lable'>mailing</li>
					<li class="detail">&nbsp;
					<?php
					if($customer['mailingck']== 1){
						echo "Yes";
					}else{
						echo "No";
					}
					?>
					</li>				
				</ul>
			</div>

		</form>
		<div style="padding: 5px;" align="center">
			<input type="button" class="button green small" value="수정하기"
				onclick="javascript:detail_modify();" /> <input type="button"
				class="button white small" value="돌아가기"
				onclick="javacsript:history.go(-1)" />
		</div>

	</div>
</body>
</html>
<?
mysql_free_result($customer);
mysql_close();
?>